package com.anti.modular.owner.ownerlease.service;

import com.anti.jdbc.support.page.PageParam;
import com.anti.jdbc.support.page.PageResult;
import com.anti.modular.owner.ownerlease.entity.OwnerLease;
import com.anti.modular.owner.ownerlease.entity.OwnerLeaseEditResult;
import com.anti.modular.owner.ownerlease.param.OwnerLeaseParam;

import java.util.List;

/**
 * 業主租約service接口
 *
 * @author anti
 * @date 2021-05-20 14:23:14
 */
public interface OwnerLeaseService{

    /**
    * 根据主键查询实体
    */
    OwnerLease getById(OwnerLeaseParam ownerLeaseParam);

    OwnerLease getByLeaseById(Long id);

    /**
     * 查询業主租約
     *
     * @author anti
     * @date 2021-05-20 14:23:14
     */
    PageResult page(PageParam pageParam,OwnerLeaseParam ownerLeaseParam);

    /**
     * 業主租約列表
     *
     * @author anti
     * @date 2021-05-20 14:23:14
     */
    List<OwnerLease> list(OwnerLeaseParam ownerLeaseParam);

    /**
     * 添加業主租約
     *
     * @author anti
     * @date 2021-05-20 14:23:14
     */
    void add(OwnerLeaseParam ownerLeaseParam);

    void editYzXx(OwnerLeaseParam ownerLeaseParam);

    void editZyZqFy(OwnerLeaseParam ownerLeaseParam);


    void editTxxxAndAc(OwnerLeaseParam ownerLeaseParam);

    /**
     * 删除業主租約
     *
     * @author anti
     * @date 2021-05-20 14:23:14
     */
    void delete(OwnerLeaseParam ownerLeaseParam);

    /**
     * 编辑業主租約
     *
     * @author anti
     * @date 2021-05-20 14:23:14
     */
    void edit(OwnerLeaseParam ownerLeaseParam);

    void editXz(OwnerLeaseParam ownerLeaseParam);

    void editTuiZu(OwnerLeaseParam ownerLeaseParam);

    void editTuiZuQs(Long  id);

    /**
     * 查看業主租約
     *
     * @author anti
     * @date 2021-05-20 14:23:14
     */
     OwnerLease detail(OwnerLeaseParam ownerLeaseParam);

     OwnerLeaseEditResult detailForEdit(Long leaseId);

}
